﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="SearchAllTitles.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.UserPages.SearchAllTitles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
<asp:GridView ID="allTitlesGridView1" 
               runat="server" 
               AutoGenerateColumns="False"   
               RowStyle-BorderStyle="None"  
               PagerSettings-PageButtonCount="10" 
               GridLines="None"
               AllowPaging="True" 
               OnPageIndexChanging="allTitlesGridView1_OnPageIndexChanging" 
               BorderStyle="None" CssClass="grid" PageSize="8" >
<PagerSettings PageButtonCount="10" />                     
<RowStyle BorderStyle="None"></RowStyle>
           <Columns>
            <asp:TemplateField HeaderText = "All Titles in Library">
               <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("BookCover") %>' CssClass="smallImage2" /><br />
                    TITLE: <asp:Label ID="BookTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label><br/>
                    AUTHOR: <asp:Label ID="BookAuthor" runat="server" Text='<%# Eval("Author") %>'></asp:Label><br />
                    GENRE: <asp:Label ID="BookGenre" runat="server" Text='<%# Eval("Genre") %>'></asp:Label><br />
                    QUANTITY IN STOCK: <asp:Label ID="BookQuantity" runat="server" Text='<%# Eval("QuantityInStock") %>'></asp:Label><br />
                    PRICE: <asp:Label ID="BookPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label><br /><br />
                    <a href="TitleDetailsPage.aspx?id=<%# Eval("ID") %>">More>></a>
                </ItemTemplate>                
            </asp:TemplateField>            
            </Columns>
        </asp:GridView>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
